package com.future.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("chat_room")
public class ChatRoom {
    @ApiModelProperty("聊天室Id")
    private Long Id;
    @ApiModelProperty("聊天室名字")
    private String roomName;
    @ApiModelProperty("类型(私聊/群聊/心理咨询")
    private String roomType;
    @ApiModelProperty("关联班级id,班级类型时非空")
    @TableField("class_id")
    private Long classId;
    @ApiModelProperty("创建者id,关联user表")
    private Long createdBy;
    @ApiModelProperty("创建时间")
    private Date createdAt;
}
